<?php

class SearchController extends ProjectController
{
	
	public function actionIndex($alias = null)
	{
		$category = Categories::model()->findByAttributes(array(
			'alias'=>$alias
		));
		$_strAlias = null;
		if(!empty($category)){
			$_strAlias = $category->name;
		}
		$this->render('index',array(
			'category'=>$category,
			'alias'=>$alias
		));
	}
}